<template>
  <!--组件的结构  -->
  <div>
    <h2 @click="showName">学校地址:{{ name }}</h2>
    <h2>学校地址:{{ address }}</h2>
  </div>
</template>

<script>
import { mixin } from "../mixin";
// 组件交互的相关代码(数据,方法等等)
export default {
  name: "School",
  data() {
    return {
      name: "黑马",
      address: "北京",
    };
  },
  // mixins: [mixin],
};
</script>
